package itdep.services.address;

import itdep.domain.address.City;
import itdep.domain.address.Settlement;
import itdep.services.NamedEntityQuery;

/**
 * @author Ivan Khalopik
 * @version $Revision: 42 $ $Date: 2010-06-25 09:12:54 +0000 (Fri, 25 Jun 2010) $
 */
public class CityQuery
		extends NamedEntityQuery<City, CityQuery>
		implements CityFilter {

	private Settlement settlement;

	public CityQuery() {
		super(City.class);
	}

	@Override
	public Settlement getSettlement() {
		return settlement;
	}

	public CityQuery setSettlement(Settlement settlement) {
		this.settlement = settlement;
		return query();
	}
}
